class DeviceDetailsModel {

  String license;//牌照
  String numbering;//编号
  String grouping;//分组
  String simNo;//sim号码
  String serviceTime;//服务器时间
  String deviceTime;//设备时间
  String state;//状态
  int speed;//速度
  String direction;//方向
  int mileageDay;//日里程
  int mileageAll;//总里程
  int temperature;//温度
  int oilQuantity;//油量
  String address;//位置


  DeviceDetailsModel(
      {this.license,
        this.numbering,
        this.grouping,
        this.simNo,
        this.serviceTime,
        this.deviceTime,
        this.state,
        this.speed,
        this.direction,
        this.mileageDay,
        this.mileageAll,
        this.temperature,
        this.oilQuantity,
        this.address,
      });

  DeviceDetailsModel.fromJson(Map<String, dynamic> json) {
    license = json['license'];
    numbering = json['numbering'];
    grouping=json['grouping'];
    simNo=json['simNo'];
    serviceTime=json['serviceTime'];
    deviceTime=json['deviceTime'];
    state=json['state'];
    speed=json['speed'];
    direction=json['direction'];
    mileageDay=json['mileageDay'];
    mileageAll=json['mileageAll'];
    temperature=json['temperature'];
    oilQuantity=json['oilQuantity'];
    address=json['address'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['license'] = this.license;
    data['numbering'] = this.numbering;
    data['grouping'] = this.grouping;
    data['simNo'] = this.simNo;
    data['serviceTime'] = this.serviceTime;
    data['deviceTime'] = this.deviceTime;
    data['state'] = this.state;
    data['speed'] = this.speed;
    data['direction'] = this.direction;
    data['mileageDay'] = this.mileageDay;
    data['mileageAll'] = this.mileageAll;
    data['temperature'] = this.temperature;
    data['oilQuantity'] = this.oilQuantity;
    data['address'] = this.address;
    return data;
  }
}